package com.vincent.dao;

import com.vincent.common.enums.CacheEnum;
import com.vincent.model.AdPosition;
import org.springframework.cache.annotation.Cacheable;
import org.springframework.stereotype.Repository;

import javax.annotation.Resource;
import java.util.List;

/**
 * Created by Vincent on 2014/12/28.
 */
@Repository("adPostionDao")
public class AdPostionDao {
    @Resource
    private AdPositionMapper adPositionMapper;

    @Cacheable(value = CacheEnum.ADPOSTION)
    public List<AdPosition> selectAll(){
        return adPositionMapper.selectAll();
    }
}
